package com.suse.warmstill.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author 黄靖
 * @author 2022-10-20 00:53
 * description:
 **/
@Data
@Validated
@ApiModel("角色前后端传输模型")
public class RoleVo extends BaseVo {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @NotNull(message = "角色名不能为空")
    @ApiModelProperty(name = "roleName", value = "角色名", dataType = "String")
    private String roleName;

    @NotNull(message = "角色名对应的标签不能为空")
    @ApiModelProperty("角色描述标签")
    private String roleLabel;


    @ApiModelProperty(value = "是否禁用  0否 1是")
    private int isDisable;


    @ApiModelProperty(name = "menuList", value = "角色 所对应的 菜单列表", dataType = "List<Long>")
    private List<Long> menuList;

    @ApiModelProperty("角色所对应的 资源列表")
    private List<Long> resourceList;

    @ApiModelProperty("角色的创建时间")
    private LocalDateTime createDate;

    public RoleVo() {

    }
}
